import { prop, modelOptions } from '@typegoose/typegoose';
import { ApiProperty } from '@nestjs/swagger';

@modelOptions({
  schemaOptions: { timestamps: true },
})
// 课时模型
export class Episode {
  @ApiProperty({ description: '课时名' })
  @prop()
  name: string;

  @ApiProperty({ description: '文件' })
  @prop()
  file: string;
}
